package com.csdj.essay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 评论表(问题和文章)
 * </p>
 *
 * @author 刘宇
 * @since 2022-03-17
 */
@TableName("attques_comment")
public class AttquesComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表Id
     */
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    /**
     * 评论id
     */
    private Long attquesCommentId;

    /**
     * 问题Id
     */
    private String quesId;

    /**
     * 文章id
     */
    private Long articleId;

    /**
     * 回复id
     */
    private Long huifuId;

    /**
     * 评论人Id
     */
    private Integer commentatorId;

    /**
     * 评论内容
     */
    private String commentContent;

    /**
     * 赞次数
     */
    private Integer praiseNumb;

    /**
     * 评论时间
     */
    private LocalDate createTime;

    /**
     * 评论类型，0是问题，1是文章
     */
    private Boolean commentType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getAttquesCommentId() {
        return attquesCommentId;
    }

    public void setAttquesCommentId(Long attquesCommentId) {
        this.attquesCommentId = attquesCommentId;
    }
    public String getQuesId() {
        return quesId;
    }

    public void setQuesId(String quesId) {
        this.quesId = quesId;
    }
    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }
    public Long getHuifuId() {
        return huifuId;
    }

    public void setHuifuId(Long huifuId) {
        this.huifuId = huifuId;
    }
    public Integer getCommentatorId() {
        return commentatorId;
    }

    public void setCommentatorId(Integer commentatorId) {
        this.commentatorId = commentatorId;
    }
    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }
    public Integer getPraiseNumb() {
        return praiseNumb;
    }

    public void setPraiseNumb(Integer praiseNumb) {
        this.praiseNumb = praiseNumb;
    }
    public LocalDate getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }
    public Boolean getCommentType() {
        return commentType;
    }

    public void setCommentType(Boolean commentType) {
        this.commentType = commentType;
    }

    @Override
    public String toString() {
        return "AttquesComment{" +
            "id=" + id +
            ", attquesCommentId=" + attquesCommentId +
            ", quesId=" + quesId +
            ", articleId=" + articleId +
            ", huifuId=" + huifuId +
            ", commentatorId=" + commentatorId +
            ", commentContent=" + commentContent +
            ", praiseNumb=" + praiseNumb +
            ", createTime=" + createTime +
            ", commentType=" + commentType +
        "}";
    }
}
